﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        if (Context.User.Identity.IsAuthenticated)
        {
            if (Context.User.IsInRole(System.Web.Configuration.WebConfigurationManager.AppSettings["employerrolename"]))
            {
                Response.Redirect("./employer/postjobs.aspx");
            }
            else
            {
                Response.Redirect("login.aspx");
            }
        }
        else
        {
            Response.Redirect("login.aspx");
        }
        //Response.Redirect("EmployerRegn.aspx");
    }
    protected void btnResume_Click(object sender, ImageClickEventArgs e)
    {
        if (Context.User.Identity.IsAuthenticated)
        {
            if (Context.User.IsInRole(System.Web.Configuration.WebConfigurationManager.AppSettings[""]))
            {
                Response.Redirect("jobseeker/editprofile.aspx");
            }
            else
            {
                Response.Redirect("login.aspx");
            }

        }
        else
        {
            Response.Redirect("login.aspx");
        }
        // Response.Redirect("jobseekers.aspx");
    }
}
